/**
 * Created by Jone on 2016/7/24.
 */

var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var ProjectUserSchema = new Schema({
    userId: {type : Schema.Types.ObjectId, ref: 'User'},  //用户Id
    projectId: {type : Schema.Types.ObjectId, ref: 'Project'},  //项目Id
    createAt:{type: Date, default: Date.now}, //创建时间
    updateAt: {type: Date, default: Date.now} //更新时间
});
exports.ProjectUser = mongoose.model('ProjectUser', ProjectUserSchema);